package com.ruoyi.edu.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 教育政策对象 edu_policy
 *
 * @author ruoyi
 * @date 2024-06-29
 */
public class EduPolicy extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一ID
     */
    private Long id;

    /**
     * 区域ID
     */
    @Excel(name = "区域ID")
    private Long areaId;

    /**
     * 教育政策针对阶段，0-幼儿园，1-小学，2-中学，3-高中
     */
    @Excel(name = "教育政策针对阶段，0-幼儿园，1-小学，2-中学，3-高中")
    private Long eduStage;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 政策内容
     */
    @Excel(name = "政策内容")
    private String content;

    /**
     * 政策发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "政策发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /**
     * 政策生效时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "政策生效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setEduStage(Long eduStage) {
        this.eduStage = eduStage;
    }

    public Long getEduStage() {
        return eduStage;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setEffectTime(Date effectTime) {
        this.effectTime = effectTime;
    }

    public Date getEffectTime() {
        return effectTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("areaId", getAreaId())
                .append("eduStage", getEduStage())
                .append("title", getTitle())
                .append("content", getContent())
                .append("publishTime", getPublishTime())
                .append("effectTime", getEffectTime())
                .toString();
    }
}
